package com.memory.monitor.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.memory.monitor.common.DeleteRequest;
import com.memory.monitor.model.dto.institution.InstitutionAddRequest;
import com.memory.monitor.model.dto.institution.InstitutionQueryRequest;
import com.memory.monitor.model.dto.institution.InstitutionUpdateRequest;
import com.memory.monitor.model.dto.job.JobAddRequest;
import com.memory.monitor.model.dto.job.JobQuerryRequest;
import com.memory.monitor.model.dto.job.JobUpdateRequest;
import com.memory.monitor.model.entity.Institution;
import com.memory.monitor.model.entity.Job;
import com.memory.monitor.model.vo.InstitutionVO;
import com.memory.monitor.model.vo.JobVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
* @author 21731
* @description 针对表【job(岗位管理)】的数据库操作Service
* @createDate 2024-09-02 09:59:52
*/
public interface JobService extends IService<Job> {
    /**
     * 获取JobVO信息
     *
     * @param job
     * @return
     */
    JobVO getjobVO(Job job);

    /**
     * 获取JobList信息
     *
     * @param jobList
     * @return
     */
    List<JobVO> getjobVO(List<Job> jobList);

    /**
     * 获取查询条件
     *
     * @param jobQuerryRequest
     * @return
     */
    QueryWrapper<Job> getQueryWrapper(JobQuerryRequest jobQuerryRequest);

    /**
     * 增加查询条件
     *
     * @param jobAddRequest
     * @return
     */
    Long addJob(JobAddRequest jobAddRequest);
    /**
     * 修改查询条件
     *
     * @param jobUpdateRequest
     * @return
     */

    Boolean updateJob(JobUpdateRequest jobUpdateRequest);

    /**
     * 删除查询条件
     *
     * @param deleteRequest
     * @return
     */

    Boolean deleteJob(DeleteRequest deleteRequest);

    List<JobVO> listJobByPage();

    Boolean readExcel(MultipartFile multipartFile);

    Boolean writeExcel(String path);


}
